import random
'''
生成随机手机号的方法
'''

def generate_mobile():
    '''生产随机手机号'''
    phone = "1" + random.choice(["3", "5", "7", "8", "9"])
    # print(phone)
    for i in range(0, 9):
        # print(i)
        num = random.randint(1, 9)
        # print(num)
        phone = phone + str(num)
    return phone


if __name__ == '__main__':
    print(generate_mobile())  # 19117263271
